package com.spddr.pmos.cxf;

import java.util.List;

import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import com.spddr.pmos.jpa.UnitWaterCost;
import com.spddr.pmos.jpa.UnitWaterCostId;

import cn.seqdata.cxf.repos.JaxrsRepository;

@Path("/unit/watercost")
public interface JaxrsUnitWaterCost extends JaxrsRepository<UnitWaterCost, UnitWaterCostId> {
	@GET
	List<UnitWaterCost> findByUnit(@PathParam("unit") long unit);

	@PUT
	void saveByUnit(@PathParam("unit") long unit, List<UnitWaterCost> entities);

	@DELETE
	void deleteByUnit(@PathParam("unit") long unit);
}
